<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<div title="维护告知规则" id="informRuleSelectDialog" class="dialogtitle">
	<div class="searchbox">
		<span class="fontRed">注:</span>带"<span class="fontRed">*</span>"为必填项
		<form id="frmInformRule" onSubmit="return false">
			<input type="hidden" name="id" value="<c:out value='${informRule.id }'/>">
			<table id="informRuleTable" cellspacing="0" cellpadding="0">
  				<tr>
   					<td align="right" style="width:90px;">告知规则名称：<span class="fontRed">*</span></td>
   					<td colspan="3"><input type="text" id="" name=""  value="<c:out value='${informRule.name}'/>" style="width: 415px; "></td>
  				</tr>
  				<tr>
   					<td align="right" valign="top" style="width:90px;">告知模板：<span class="fontRed">*</span></td>
   					<td>
   						<a href="javascript:informTemplateDialogView()">共 <label id="informTemplateDialogNumber">${fn:length(lstInformTemplate)}</label> 条</a>
   						<button onclick="showSelectDialog('informTemplateDialog','rightInformTemplateList','ajaxShowInformTemplateSelectDialog.do',function(){$('#informTemplateDialogNumber').text($('#rightInformTemplateList tbody tr').size());getDialogRightForString('rightInformTemplateList','informTemplate');})">选择</button>
   					</td>
   					<td style="width:90px" align="right">告知对象：&nbsp;</td>
    				<td>
   						<a href="javascript:informObjectDialogView()">共 <label id="informObjectDialogNumber">${fn:length(lstInformObject)}</label> 条</a>
   						<button onclick="showSelectDialog('informObjectDialog','rightInformObjectList','ajaxShowInformObjectSelectDialog.do',function(){$('#informObjectDialogNumber').text($('#rightInformObjectList tbody tr').size());getDialogRightForString('rightInformObjectList','informObject');})">选择</button>
   					</td>
  				</tr>
  				<tr>
   					<td align="right" style="width:90px;">告知账号：&nbsp;</td> 
					<td>
						<a href="javascript:informAccountDialogView()">共 <label id="informAccountDialogNumber">${fn:length(lstInformAccount)}</label> 条</a>
   						<button onclick="showSelectDialog('informAccountDialog','rightInformAccountList','ajaxShowInformAccountSelectDialog.do',function(){$('#informAccountDialogNumber').text($('#rightInformAccountList tbody tr').size());getDialogRightForString('rightInformAccountList','informAccount');})">选择</button>
   					</td>
   					<td align="right" style="width: 114px;">告知类型：&nbsp;</td>
					<td style="width: 230px;">
						<select id="" name="" style="width: 189px; ">
							<option value="">---请选择---</option>
							<c:forEach items="${lstinformRule}" var="informRule">
								<option value="${informRule.id}">${informRule.name}</option>
							</c:forEach>
						</select>
   						<input type="checkbox" name="informRuleIds" value="<c:out value='${informRule.id}'/>" />使用默认告知对象
   					</td>
  				</tr>
   			</table> 
   			<%@ include file="informAccountDialogView.jsp"%>
			<%@ include file="informObjectDialogView.jsp"%>
			<%@ include file="informTemplateDialogView.jsp"%>
   		</form>    
		<div id="infoInformRule" class="fontRed"></div>
   	</div>   
</div>
<script>
	$("button").button();
</script>
